package com.xiyang.firstfeign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 微服务消费者
 * @author xiyang.ycj
 * @since May 30, 2019 22:44:07 PM
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableHystrix //断路器
@EnableHystrixDashboard //断路器仪表板
public class FirstFeignApplication {
    public static void main(String[] args) {
        SpringApplication.run(FirstFeignApplication.class, args);
    }

}
